import request from '@/utils/request'

// 新增用户配置权限
export function addAll(data) {
  return request({
    url: '/sys/userRewardConfig/addAll',
    method: 'post',
    data: data
  })
}

//查询用户配置权限
export function selectAll(data) {
  return request({
    url: '/sys/userRewardConfig/selectAll',
    method: 'get',
    data: data
  })
}

//编辑单条用户配置权限
export function edit(data) {
  return request({
    url: '/sys/userRewardConfig/edit',
    method: 'post',
    data: data
  })
}
//单字段用户配置权限修改
export function editSingle(data) {
  return request({
    url: '/sys/userRewardConfig/updateType',
    method: 'post',
    data: data
  })
}


//根据id删除用户配置
export function del(id) {
  return request({
    url: `/sys/userRewardConfig/delete/${id}`,
    method: 'delete',
  })
}
